package com.sbl.bajw.pc.service;

import java.util.HashMap;

import javax.annotation.Resource;

import org.springframework.stereotype.Service;

import com.sbl.bajw.common.MyBatisDao;
import com.sbl.bajw.mapper.policeInfoModelDao;
import com.sbl.bajw.pc.model.policeInfoModel;

@Service
public class policeInfoModelService {
	
	@Resource
	private policeInfoModelDao dao;
	
	@Resource
	private MyBatisDao gridDao;
	
	public String getGridByOrg(HashMap<String, Object> parm) throws Exception{
		String list = gridDao.selectPage(policeInfoModelDao.class, parm, "getGridByOrg");
		return list;
	}
	
	public policeInfoModel getGridById(String id){
		policeInfoModel model = dao.getGridById(id);
		return model;
	}
	
	public String getModelByConditions(HashMap<String, Object> parm) throws Exception{
		String list = gridDao.selectPage(policeInfoModelDao.class, parm, "getModelByConditions");
		return list;
	}
}
